<%-- 
Document : mycart
Created on : Feb 23, 2013, 7:37:55 PM
Author : Eman
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
<!DOCTYPE html>
<jsp:include page="/Add2Cart"/>
<div id="templatemo_content_right">
    <h1> Book Cart </h1>
    <div class="Book_cart">
        <form action="Buy" method="POST">
            <table>
                <tr>
                    <td width="20"></td><td></td>
                    <td width="10"><b> Title: </b></td>
                    <td width="10"><b> Author: </b></td>
                    <td width="10"><b> Price: </b></td>
                    <td width="10"><b> Quantity: </b></td>
                    <td width="10"></td>
                    <td></td>
                </tr>

                <c:forEach items="${cart}" var="uCart">
                    <tr>
                        <td></td>
                        <td><input type="checkbox" name="${uCart.book.title}"</td>
                        <td> ${uCart.book.title} </td>
                        <td> ${uCart.book.auther} </td>
                        <td> $${uCart.book.price} </td>
                        <td><input type="text" name="quan${uCart.book.title}" value ="${uCart.quantity} "size="3"/></td>
                        <td><a href="">Remove</a></td>
                    </tr>
                </c:forEach>
                <br/>
                <tr>
                    <td colspan="8" align="right" ><input type="submit" value="Buy" width="10"/></td>
                </tr>
            </table>
        </form>
    </div>
</div>
<div class="cleaner_with_height">&nbsp;</div>